﻿using System.Runtime.Remoting.Messaging;
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityCor
{
   public class ConKey
    {
       public IDbConnection GetConnection
       {
           get
           {
               var myConnectionString = ConfigurationManager.ConnectionStrings["MySqlServer"].ConnectionString;
               var mycn = new MySqlConnection(myConnectionString);
               return mycn;
           }
       }
    }
}
